package com.yl.auth.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 王帅洋
 * @datetime 2023/6/27 15:45
 * @description 类对象
 */
@ApiModel(value = "出院管理类")
@Data
@TableName("chuyuan")
public class ChuyuanjiesuanBean {
    @ApiModelProperty(value = "主键id")
    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "床位")
    @TableField("bed")
    private Long bed;
    @ApiModelProperty(value = "房间")
    @TableField("room")
    private Long room;
    @ApiModelProperty(value = "老人姓名")
    @TableField("lname")
    private Long lname;
    @ApiModelProperty(value = "老人性别")
    @TableField("sex")
    private Integer sex;
    @ApiModelProperty(value = "身份证号")
    @TableField("number")
    private String number;
    @ApiModelProperty(value = "预计出去时间")
    @TableField("scheduled_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm")
    private Date scheduledTime;
    @ApiModelProperty(value = "出院原因")
    @TableField("cause")
    private String cause;
    @ApiModelProperty(value = "状态")
    @TableField("state")
    private String state;


    /**
     * 名字
     */
    @ApiModelProperty("名字")
    @ExcelProperty("名字")
    @TableField(exist = false)
    private String laorenname;


    /**
     * 床位号
     */
    @ApiModelProperty("床位号")
    @TableField(exist = false)
    private String bedNo;


    /**
     * 房间号
     */
    @TableField(exist = false)
    private Integer roomNo;


    /**
     * 性别
     */
    @ApiModelProperty("性别")
    @ExcelProperty("性别")
    @TableField(exist = false)
    private String gender;

    /**
     * 身份证号
     */
    @ApiModelProperty("身份证号")
    @ExcelProperty("身份证号")
    @TableField(exist = false)
    private String idNumber;
}
